<?php

$dbhost = "mysql.groovemechanic.net";
$dbuser = "oproto_user";
$dbpass = "oproto12345";
$dbname = "groovemechanic_oproto";

$con = mysql_connect ($dbhost, $dbuser, $dbpass) or die(mysql_error());
mysql_select_db ($dbname) or die (mysql_error());

$docname = $_POST['name'];

$query = "DELETE FROM documents WHERE name = '$docname'";
$result = mysql_query($query) or die(mysql_error());

myssql_close($con);

?>
